package com.sanyou.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "verticality_check_records")
@Data
public class VerticalityCheckRecord {

    @Id
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @Column(name = "product_code")
    private String productCode;

    @Column(name = "check1")
    private Double check1;

    @Column(name = "check2")
    private Double check2;

    @Column(name = "check3")
    private Double check3;

    @Column(name = "check4")
    private Double check4;

    @Column(name = "check5")
    private Double check5;

    @Column(name = "check6")
    private Double check6;

    @Column(name = "check7")
    private Double check7;

    @Column(name = "check8")
    private Double check8;

    @Column(name = "check9")
    private Double check9;

    @Column(name = "bias1")
    private Double bias1;

    @Column(name = "bias2")
    private Double bias2;

    @Column(name = "bias3")
    private Double bias3;

    @Column(name = "bias4")
    private Double bias4;

    @Column(name = "bias5")
    private Double bias5;

    @Column(name = "bias6")
    private Double bias6;

    @Column(name = "bias7")
    private Double bias7;

    @Column(name = "bias8")
    private Double bias8;

    @Column(name = "bias9")
    private Double bias9;

    @Column(name = "max_bias")
    private Double maxBias;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "date_time")
    private Date dateTime;
}
